third-party-exp-api icon

third-party-exp-api

(0 reviews)

CI Get Capital Invest Accounts Transactions

Description: This API gets the capitalInvestId, fromDate, toDate, topRows and transactionType from channel and gets the account transaction history for capital Invest.

The experience API (third-party-api) will push the requests to third-party-prc api which sends JSON request to MANAF sys api.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
    "capitalInvestId":  "4000215",
    “customerId”: “12345”,
    “fromDate” : “2022-03-01”,
    “toDate”: “2022-03-30”,
    “topRows”: “10”,
    “transactionType”: “1” ,
    “parent”:”1”
}

Content-type: application/json, text/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
},
    “transactionDetails”: [
        {
            “ft”: “sampleFt”,
            “accountNumber”: “7788”,
            “customerNameAr”: “احمد نعمان يحيى الشرايري”,
            “customerNameEn”: “Ahmad Numan Yahia Al- Sharayri”,
            “transactionTypeDescriptionAr”: “Transfer Deposition”,
            “transactionTypeDescriptionEn”: “Transfer Deposition”,
            “transactionDescriptionAr”: “”,
            “transactionDescriptionEn”: “”,
            “statusDescriptionAr”: “Executed immediately”,
            “statusDescriptionEn”: “Executed immediately”,
            “dateTime”: “2022-03-09T15:11:59.553”,
            “amount”: “4”,
            “currency”: “JOD”
        },
{
            “ft”: “sampleFt”,
            “accountNumber”: “7788”,
            “customerNameAr”: “احمد نعمان يحيى الشرايري”,
            “customerNameEn”: “Ahmad Numan Yahia Al- Sharayri”,
            “transactionTypeDescriptionAr”: “Transfer Deposition”,
            “transactionTypeDescriptionEn”: “Transfer Deposition”,
            “transactionDescriptionAr”: “”,
            “transactionDescriptionEn”: “”,
            “statusDescriptionAr”: “Executed immediately”,
            “statusDescriptionEn”: “Executed immediately”,
            “dateTime”: “2022-03-09T15:11:59.553”,
            “amount”: “4”,
            “currency”: “JOD”
        }
]
}

Error Response: (400, 403, 404, 405, 406, 415, 500, 501)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "",
        "englishMessage": "Accounts not Linked",
        "backendError": "Accounts not Linked",
        "backendCode": "11"
    }
}

Reviews